<!DOCTYPE html>
<html xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <title>展会</title>
    <#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="form-group col-sm-5" style="width: 600px;">
                <select class="form-control" style="width: 120px;float: left" v-model="templateId" placeholder="展会"
                        @change="">
                    <option value="">请选择展会</option>
                    <option v-for="option in templates" v-bind:value="option.id">
                        {{ option.template }}
                    </option>
                </select>
                <select class="form-control" style="width: 150px;float: left" v-model="audiencetype" placeholder="来源" @change="">
                    <option value="0" >
                        普通观众
                    </option>
                    <option value="1">
                        预登记观众
                    </option>
                </select>
                <input autocomplete="off" id="sign_time" class="form-control" style="width: 120px;float: left;"
                       v-model="sign_time" placeholder="到场时间">&nbsp;

            </div>
            <a class="btn btn-primary" @click="query">查询</a>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">展会名称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="nocReceipt.ly" placeholder="展会名称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="nocReceipt.personCount" placeholder=""/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="nocReceipt.companyCount" placeholder=""/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..."
                       @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/plugins/layui/laydate/laydate.js?_${.now?long}"></script>
<script src="${request.contextPath}/statics/js/modules/noc/nocaudiencepresent.js?_${.now?long}"></script>


</body>
</html>